// import Vue from 'vue'
// import Router from 'vue-router'
// Vue.use(Router);

export default new VueRouter({
  mode:'history',
  routes: [
    {
      path: '/',
      redirect: '/index'
    },
    {
      path: '/index',
      component: () => import('@/components/page/index/index.vue'),
      meta: { title: '汽玻派派',requireAuth: true },
    },
    {
      path: '/login',
        component: () => import('@/components/page/login/login.vue'),
      meta: {title: '登陆',requireAuth: false},
    },
  {
    path: '/member-center',
    component: (resolve) => require(['@/components/page/member/index'], resolve),
    meta: {title: '会员中心',requireAuth: true},
  },
  {
    path: '/app-carmodel-search',
    component: () => import('@/components/page/app-carmodel-search/index.vue'),
    meta: {title: '车型查询',requireAuth: true},
  },
    // {
    //   path: '/store-money',
    //   component: () => import('@/components/page/store-money.vue'),
    //   meta: {title: '账目信息',requireAuth: true},
    // },
    // {
    //   path: '/cancel-coupon',
    //   component: () => import('@/components/page/cancel-coupon.vue'),
    //   meta: {title: '卡券核销',requireAuth: true},
    // },
    // {
    //   path: '/setting',
    //   component: () => import('@/components/page/setting.vue'),
    //   meta: {title: '设置',requireAuth: true},
    // },
    // {
    //   path: '/card-number-cancle',
    //     component: () => import('@/components/page/card-number-cancle.vue'),
    //   meta: {title: '卡券号核销',requireAuth: true},
    // },
    // {
    //   path: '/password-modify',
    //     component: () => import('@/components/page/password-modify.vue'),
    //   meta: {title: '修改密码',requireAuth: true},
    // },
    // {
    //   path: '/bank-information',
    //     component: () => import('@/components/page/bank-information.vue'),
    //   meta: {title: '余额提现',requireAuth: true},
    // },
    // {
    //   path: '/referral-code',
    //     component: () => import('@/components/page/referral-code.vue'),
    //   meta: {title: '门店推荐码',requireAuth: true},
    // },
    // {
    //   path: '/glass-data',
    //     component: () => import('@/components/page/glass-data.vue'),
    //   meta: {title: '玻璃门店数据',requireAuth: true},
    // },
    // {
    //   path: '/staff-details',
    //     component: () => import('@/components/page/staff-details.vue'),
    //   meta: {title: '团队数据',requireAuth: true},
    // },
    // {
    //   path: '/glass-order-list',
    //     component: () => import('@/components/page/glass-order-list.vue'),
    //   meta: {title: '订单管理',requireAuth: true},
    // },
    // {
    //   path: '/report-center',
    //     component: () => import('@/components/page/report-center.vue'),
    //   meta: {title: '品牌车型',requireAuth: true},
    // },
    // {
    //   path: '/report-center-modify',
    //     component: () => import('@/components/page/report-center-modify.vue'),
    //   meta: {title: '修改报单',requireAuth: true},
    // },
    // {
    //   path: '/report-order-list',
    //     component: () => import('@/components/page/report-order-list.vue'),
    //   meta: {title: '报单列表',requireAuth: true},
    // },
    // {
    //   path: '/report-order-details',
    //     component: () => import('@/components/page/report-order-details.vue'),
    //   meta: {title: '报单详情',requireAuth: true},
    // },
    // {
    //   path: '/push-order-list',
    //     component: () => import('@/components/page/push-order-list.vue'),
    //   meta: {title: '服务工单',requireAuth: true},
    // },
    // {
    //   path: '/push-order-details',
    //     component: () => import('@/components/page/push-order-details.vue'),
    //   meta: {title: '工单详情',requireAuth: true},
    // },
    // {
    //   path: '/push-order-list2',
    //     component: () => import('@/components/page/push-order-list2.vue'),
    //   meta: {title: '工单管理',requireAuth: true},
    // },
    // {
    //   path: '/push-order-details2',
    //     component: () => import('@/components/page/push-order-details2.vue'),
    //   meta: {title: '工单详情',requireAuth: true},
    // },
    // {
    //   path: '/upload-photos',
    //     component: () => import('@/components/page/upload-photos.vue'),
    //   meta: {title: '上传维修照片',requireAuth: true},
    // },
    // {
    //   path: '/add-address',
    //     component: () => import('@/components/page/add-address.vue'),
    //   meta: {title: '新增收货地址',requireAuth: true},
    // },
    // {
    //   path: '/platform-report-list',
    //     component: () => import('@/components/page/platform-report-list.vue'),
    //   meta: {title: '派工列表',requireAuth: true},
    // },
    // {
    //   path: '/platform-report-details',
    //     component: () => import('@/components/page/platform-report-details.vue'),
    //   meta: {title: '派工详情',requireAuth: true},
    // },
    // {
    //   path: '/platform-report-add',
    //     component: () => import('@/components/page/platform-report-add.vue'),
    //   meta: {title: '派工中心',requireAuth: true},
    // },
    // {
    //   path: '/brand-list',
    //     component: () => import('@/components/page/brand-list.vue'),
    //   meta: {title: '选择品牌',requireAuth: true},
    // },
    // {
    //   path: '/store-add-user',
    //     component: () => import('@/components/page/store-add-user.vue'),
    //   meta: {title: '用户/部门管理',requireAuth: true},
    // },
    // {
    //   path: '/data-member-center',
    //     component: () => import('@/components/page/data-index.vue'),
    //   meta: {title: '数据中心',requireAuth: true},
    // },
    // {
    //   path: '/data-staff',
    //     component: () => import('@/components/page/data-staff.vue'),
    //   meta: {title: '团队数据',requireAuth: true},
    // },
    // {
    //   path: '/data-store-statistics',
    //     component: () => import('@/components/page/data-store-statistics.vue'),
    //   meta: {title: '门店统计数据',requireAuth: true},
    // },
    // {
    //   path: '/data-push-list',
    //     component: () => import('@/components/page/data-push-list.vue'),
    //   meta: {title: '工单列表',requireAuth: true},
    // },
    // {
    //   path: '/store-management',
    //     component: () => import('@/components/page/store-management.vue'),
    //   meta: {title: '门店管理',requireAuth: true},
    // },
    // {
    //   path: '/store-role-list',
    //     component: () => import('@/components/page/store-role-list.vue'),
    //   meta: {title: '角色列表',requireAuth: true},
    // },
    // {
    //   path: '/store-inquiry-order',
    //     component: () => import('@/components/page/store-inquiry-order.vue'),
    //   meta: {title: '下单页面',requireAuth: true},
    // },
    // {
    //   path: '/store-inquiry-order1',
    //     component: () => import('@/components/page/store-inquiry-order1.vue'),
    //   meta: {title: '下单页面',requireAuth: true},
    // },
    // {
    //   path: '/store-inquiry-order-add',
    //     component: () => import('@/components/page/store-inquiry-order-add.vue'),
    //   meta: {title: '询价页面',requireAuth: true},
    // },
    // {
    //   path: '/platform-inquiry-center',
    //     component: () => import('@/components/page/platform-inquiry-center.vue'),
    //   meta: {title: '询价中心',requireAuth: true},
    // },
    // {
    //   path: '/platform-inquiry-details',
    //     component: () => import('@/components/page/platform-inquiry-details.vue'),
    //   meta: {title: '询价详情',requireAuth: true},
    // },
    // {
    //   path: '/store-list',
    //     component: () => import('@/components/page/store-list.vue'),
    //   meta: {title: '门店列表',requireAuth: true},
    // },
    // {
    //   path: '/store-repair-index',
    //     component: () => import('@/components/page/store-repair-index.vue'),
    //   meta: {title: '首页',requireAuth: true},
    // },
    // {
    //   path: '/store-settled-in',
    //     component: () => import('@/components/page/store-settled-in.vue'),
    //   meta: {title: '门店入驻',requireAuth: false},
    // },
    // {
    //   path: '/store-settled-in1',
    //     component: () => import('@/components/page/store-settled-in1.vue'),
    //   meta: {title: '门店入驻',requireAuth: false},
    // },
    // {
    //   path: '/salesman-add-user',
    //     component: () => import('@/components/page/salesman-add-user.vue'),
    //   meta: {title: '业务员新增用户',requireAuth: true},
    // },
    // {
    //   path: '/financial-statements',
    //     component: () => import('@/components/page/financial-statements.vue'),
    //   meta: {title: '对账中心',requireAuth: true},
    // },
    // {
    //   path: '/test',
    //     component: () => import('@/components/page/test.vue'),
    //   meta: {title: '测试页面',requireAuth: true},
    // },
    // {
    //   path: '/insurance-count',
    //     component: () => import('@/components/page/insurance-count.vue'),
    //   meta: {title: '车险优惠试算',requireAuth: true},
    // },
    // {
    //   path: '/order-print-list',
    //     component: () => import('@/components/page/order-print-list.vue'),
    //   meta: {title: '工单打印',requireAuth: true},
    // },
    // {
    //   path: '/customer-management',
    //     component: () => import('@/components/page/customer-management.vue'),
    //   meta: {title: '客商管理',requireAuth: true},
    // },
    // {
    //   path: '/customer-details',
    //     component: () => import('@/components/page/customer-details.vue'),
    //   meta: {title: '客商详情',requireAuth: true},
    // },
    // {
    //   path: '/customer-add-edit',
    //     component: () => import('@/components/page/customer-add-edit.vue'),
    //   meta: {title: '客户新增/编辑',requireAuth: true},
    // },
    // {
    //   path: '/supplier-add-edit',
    //     component: () => import('@/components/page/supplier-add-edit.vue'),
    //   meta: {title: '供应商新增/编辑',requireAuth: true},
    // },
    //
    // {
    //   path: '/receivable-and-payable',
    //     component: () => import('@/components/page/receivable-and-payable.vue'),
    //   meta: {title: '应收应付',requireAuth: true},
    // },
    // {
    //   path: '/receivable-payable-details',
    //     component: () => import('@/components/page/receivable-payable-details.vue'),
    //   meta: {title: '明细',requireAuth: true},
    // },
    // {
    //   path: '/help-type',
    //     component: () => import('@/components/page/help-type.vue'),
    //   meta: {title: '帮助文档',requireAuth: true},
    // },
    // {
    //   path: '/help-list',
    //     component: () => import('@/components/page/help-list.vue'),
    //   meta: {title: '帮助文档',requireAuth: true},
    // },
    // {
    //   path: '/build-tips',
    //     component: () => import('@/components/page/build-tips.vue'),
    //   meta: {title: '栏目建设中',requireAuth: true},
    // },
    // {
    //   path: '/money-management',
    //     component: () => import('@/components/page/money-management.vue'),
    //   meta: {title: '财务管理',requireAuth: true},
    // },
    // {
    //   path: '/find-password',
    //     component: () => import('@/components/page/find-password.vue'),
    //   meta: {title: '找回密码',requireAuth: true},
    // },
    // {
    //   path: '/car-management',
    //     component: () => import('@/components/page/car-management.vue'),
    //   meta: {title: '车辆档案',requireAuth: true},
    // },
    // {
    //   path: '/product-list',
    //     component: () => import('@/components/page/product-list.vue'),
    //   meta: {title: '商品列表',requireAuth: true},
    // },
    // {
    //   path: '/product-details',
    //     component: () => import('@/components/page/product-details.vue'),
    //   meta: {title: '商品详情',requireAuth: true},
    // },
    // {
    //   path: '/app-shopcart',
    //     component: () => import('@/components/page/app-shopcart.vue'),
    //   meta: {title: '购物车',requireAuth: true},
    // },
    // {
    //   path: '/my-money',
    //     component: () => import('@/components/page/my-money.vue'),
    //   meta: {title: '计件工资',requireAuth: true},
    // },
    // {
    //   path: '/purchasing-management',
    //     component: () => import('@/components/page/purchasing-management.vue'),
    //   meta: {title: '新增采购单',requireAuth: true},
    // },
    // {
    //   path: '/purchasing-list',
    //     component: () => import('@/components/page/purchasing-list.vue'),
    //   meta: {title: '采购历史',requireAuth: true},
    // },
    // {
    //   path: '/purchasing-details',
    //     component: () => import('@/components/page/purchasing-details.vue'),
    //   meta: {title: '采购单详情',requireAuth: true},
    // },
    // {
    //   path: '/all-function',
    //     component: () => import('@/components/page/all-function.vue'),
    //   meta: {title: '全部功能',requireAuth: true},
    // },
    // {
    //   path: '/app-warehouse-list',
    //     component: () => import('@/components/page/app-warehouse-list.vue'),
    //   meta: {title: '仓库仓位',requireAuth: true},
    // },
    // {
    //   path: '/warehouse-add-edit',
    //     component: () => import('@/components/page/warehouse-add-edit.vue'),
    //   meta: {title: '新增仓库仓位',requireAuth: true},
    // },
    // {
    //   path: '/product-management',
    //     component: () => import('@/components/page/product-management.vue'),
    //   meta: {title: '商品管理',requireAuth: true},
    // },
    // {
    //   path: '/product-add',
    //     component: () => import('@/components/page/product-add.vue'),
    //   meta: {title: '新增商品',requireAuth: true},
    // },
    // {
    //   path: '/product-management-details',
    //     component: () => import('@/components/page/product-management-details.vue'),
    //   meta: {title: '商品详情',requireAuth: true},
    // },
    // {
    //   path: '/product-management-details',
    //     component: () => import('@/components/page/product-management-details.vue'),
    //   meta: {title: '商品详情',requireAuth: true},
    // },
    // {
    //   path: '/insurance-quote',
    //     component: () => import('@/components/page/insurance-quote.vue'),
    //   meta: {title: '车辆投保',requireAuth: true},
    // },
    // {
    //   path: '/insurance-plan',
    //     component: () => import('@/components/page/insurance-plan.vue'),
    //   meta: {title: '投保方案',requireAuth: true},
    // },
    // {
    //   path: '/insurance-price-info',
    //     component: () => import('@/components/page/insurance-price-info.vue'),
    //   meta: {title: '报价信息',requireAuth: true},
    // },
    // {
    //   path: '/insurance-application',
    //     component: () => import('@/components/page/insurance-application.vue'),
    //   meta: {title: '申请核保',requireAuth: true},
    // },
    //
    // {
    //   path: '/app-3c-search',
    //     component: () => import('@/components/page/app-3c-search.vue'),
    //   meta: {title: '3c认证查询',requireAuth: false},
    // },
    // {
    //   path: '/app-3c-details',
    //     component: () => import('@/components/page/app-3c-details.vue'),
    //   meta: {title: '3c查询详情',requireAuth: false},
    // },
    // {
    //   path: '/app-grabsheet-details',
    //     component: () => import('@/components/page/app-grabsheet-details.vue'),
    //   meta: {title: '抢单详情',requireAuth: true},
    // },
    // {
    //   path: '/app-grabsheet-list',
    //     component: () => import('@/components/page/app-grabsheet-list.vue'),
    //   meta: {title: '抢单中心',requireAuth: true},
    // },
    // {
    //   path: '/insurance-order-details',
    //     component: () => import('@/components/page/insurance-order-details.vue'),
    //   meta: {title: '保单详情',requireAuth: true},
    // },
    // {
    //   path: '/app-carmodel-details',
    //     component: () => import('@/components/page/app-carmodel-details.vue'),
    //   meta: {title: '车辆详情',requireAuth: true},
    // },
    // {
    //   path: '/test-qianming',
    //     component: () => import('@/components/page/test-qianming.vue'),
    //   meta: {title: '签名',requireAuth: true},
    // },

  ]
})
